package com.vipshop.core.entity;
import com.vipshop.core.base.BaseEntity;
import javax.persistence.*;

@Entity
@Table(name = "vip_member")
public class Member  extends  BaseEntity {

    @Column(name = "open_id",unique = true)
    private String openId;
    @Column(name = "user_name",unique = true,length = 50)
    private String userName;

    @Column(name = "password",nullable = false)
    private String passWord;

    @Column(name = "email",unique = true)
    private String email;

    @Column(name = "mobile",unique = true,length = 11)
    private String mobile;

    @Column(name = "nick_name",length = 50,columnDefinition="nvarchar(50)")
    private String nickName;

    /**
     * 微信OpenId
     * @return
     */
    public String getOpenId() {
        return openId;
    }

    /**
     * 微信OpenId
     * @param openId
     */
    public void setOpenId(String openId) {
        this.openId = openId;
    }

    /**
     * 用户登录名
     * @return
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 用户登录名
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 登录密码
     * @return
     */
    public String getPassWord() {
        return passWord;
    }

    /**
     * 登录密码
     * @param passWord
     */
    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    /**
     * 电子邮件
     * @return
     */
    public String getEmail() {
        return email;
    }

    /**
     * 电子邮件
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 手机号
     * @return
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * 手机号
     * @param mobile
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * 昵称
     * @return
     */
    public String getNickName() {
        return nickName;
    }

    /**
     * 昵称
     * @param nickName
     */
    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
}
